using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Xml.Serialization;

[System.Serializable]
public class CharacterProperty : MonoBehaviour
{
	public MonitoredInt hp = new MonitoredInt(1000);
	public int hpMax = 1000;

	public int hpRecovery = 20;
	public int hpRecoveryMax = 30;

	//if using CD time, may not using TP anymore
	public int tp = 100;//technical point like magic or skill
	public int tpMax = 100;

	public int tpRecovery = 15;
	public int tpRecoveryMax = 30;

	public int sp = 10;//super power,or angry gauge
	public int spMax = 100;

	public MonitoredInt dp = new MonitoredInt(1000); // defense point
	public int dpMax = 1000;

	public int strength = 30;
	public int strengthMax = 200;

	public int strengthUp = 3;
	public int strengthUpMax = 10;
	
	public int magic = 10;
	public int magicMax = 100;

	public int magicUp = 3;
	public int magicUpMax = 10;
	
	public int defense = 10;
	public int defenseMax = 100;


	public int shell = 15;//some buff effect
	public int shellMax = 15;
	
	public int resist = 10;
	public int resistMax = 100;

	public int luck = 10;
	public int luckMax = 100;

	//rotation speed
	public int agile = 30;
	public int agileMax = 30;

	//run speed
	public int speed = 2;
	public int speedMax = 10;
	
	public int criticalChance = 10;
	public int criticalChanceMax = 100;

	public int vision = 5;
	public int visionMax = 10;
	 
	public Weapon weapon; 

	void Awake(){
		weapon = new Weapon(); 
	}

	void Save(){

	}

	void Load(){

	}
}

